using UnityEngine;

public class FirewallLifetime : MonoBehaviour
{
    private float lifeTime;

    public void Init(float duration)
    {
        lifeTime = duration;
    }

    private void Update()
    {
        lifeTime -= Time.deltaTime;
        if (lifeTime <= 0)
        {
            Destroy(gameObject);
        }
    }
}
